{% extends "base.html" %}


{% block title %}Password Reset{% endblock %}

{% block content %}

{% if validlink %}

<h1>Password Reset</h1>

<h2>Enter new password</h2>

<p>Please enter your new password twice so we can verify you typed it in correctly.</p>

<form action="" method="post">
<table>
{{form}}
</table>
{% comment %}
{% if form.new_password1.errors %}{{ form.new_password1.errors }}{% endif %}
<p class="aligned wide"><label for="id_new_password1">{% trans 'New password:' %}</label>{{ form.new_password1 }}</p>
{% if form.new_password2.errors %}{{ form.new_password2.errors }}{% endif %}
<p class="aligned wide"><label for="id_new_password2">{% trans 'Confirm password:' %}</label>{{ form.new_password2 }}</p>
{% endcomment %}
<p><input type="submit" value="Change my password" /></p>
</form>

{% else %}

<h1>Password reset unsuccessful</h1>

<p>The password reset link was invalid, possibly because it has already been used.  Please request a new password reset.</p>
{% endif %}

{% endblock %}
